<?php

namespace App\Http\Controllers;

use App\Models\HouseBroker;
use App\Services\RankingServices;
use App\Tools\JsonTools;
use App\Tools\RedisTools;
use Illuminate\Http\Request;

class RankingListController extends Controller
{

    /**
     * 排行榜展示
     * @param Request $request
     * @return array
     */

    public function rankingList(Request $request){

//        获取用户ID
        $id = $request->id;

        $res = RankingServices::brokerRanking($id);

        return JsonTools::JsonSuccess($res,200,'排行榜');

    }
}
